-- || Created by Unlimited

Save = inherit(Singleton)

function Save:constructor()
	self.m_Data = {}
end

function Save:save(player)
	--[[for _, player in pairs (getElementsByType("player")) do
		local allElementData = toJSON(player:getAllData())
		for name, value in pairs (allElementData) do 
			mysql:query("UPDATE playerData SET ? = ? WHERE Name = ?", name, value, getPlayerName(player))
		end
	end]]
end

function Save:add(plr)
	if not self.m_Data[plr] then
		self.m_Data[plr] = {}
	end
end